package cn.getech.data.development.model.ranger;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import lombok.*;

import java.util.List;
import java.util.Set;

/**
 * @author hujz
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class RangerMaskPolicyItem {
    private List<RangerPolicyItemAccess> accesses = Lists.newArrayList();
    private Set<String> users = Sets.newHashSet();
    private RangerDataMaskInfo dataMaskInfo;

    @Override
    public String toString() {
        return "RangerMaskPolicyItem{" +
                "accesses=" + accesses +
                ", users=" + users +
                ", dataMaskInfo=" + dataMaskInfo +
                '}';
    }
}
